---
title: Hover Card
description: Displays an 8-bit hover card component.
---

import { Button } from "@/components/ui/8bit/button";
import {
  HoverCard,
  HoverCardContent,
  HoverCardTrigger,
} from "@/components/ui/8bit/hover-card";
import CopyCommandButton from "@/components/copy-command-button";
import InstallationCommands from "@/components/installation-commands";
import ComponentPreview from "@/components/component-preview";

<div className="flex flex-col md:flex-row items-center justify-end gap-2 mb-2">
  <CopyCommandButton
    copyCommand="pnpm dlx shadcn@latest add @8bitcn/hover-card"
    command="pnpm dlx shadcn@latest add @8bitcn/hover-card"
  />
</div>

<ComponentPreview title="8-bit Hover Card component" name="hover-card">
  <HoverCard>
    <HoverCardTrigger>
      <Button variant="link">Hover</Button>
    </HoverCardTrigger>
    <HoverCardContent className="w-80">
      For the Horde! ⚔️
    </HoverCardContent>
  </HoverCard>
</ComponentPreview>

## Installation

---

<InstallationCommands packageName="hover-card" />

## Usage

---

```tsx
import {
  HoverCard,
  HoverCardContent,
  HoverCardTrigger,
} from "@/components/ui/8bit/hover-card"
```

```tsx
<HoverCard>
  <HoverCardTrigger>
    <Button variant="link">Hover</Button>
  </HoverCardTrigger>
  <HoverCardContent>For the Horde! ⚔️</HoverCardContent>
</HoverCard>
```

